/// bedId : 4382097016811521
/// bedNo : "10(朝北)"
/// branchId : 6627
/// createdBy : "5"
/// createdDate : "2024-05-31 16:25:18"
/// customerId : 4965300435021824
/// customerName : "测试身份证导入"
/// drugId : 1
/// drugName : "藿香正气胶囊"
/// id : 2
/// lackDate : "2024-05-31 16:25:01"
/// minUnit : "2"
/// minUnitName : "粒"
/// quantity : 38
/// saasId : 1000
/// sex : 0
/// sexName : "男"
/// specifications : "10g*12粒"
/// status : 0
/// statusName : "否"
/// stockId : 9
/// updatedBy : "5"
/// updatedDate : "2024-05-31 17:51:22"

class MedicineLackListData {
  MedicineLackListData({
      this.bedId, 
      this.bedNo, 
      this.branchId, 
      this.createdBy, 
      this.createdDate, 
      this.customerId, 
      this.customerName, 
      this.drugId, 
      this.drugName, 
      this.id, 
      this.lackDate, 
      this.minUnit, 
      this.minUnitName, 
      this.quantity, 
      this.saasId, 
      this.sex, 
      this.sexName, 
      this.specifications, 
      this.status, 
      this.statusName, 
      this.stockId, 
      this.updatedBy, 
      this.updatedDate,});

  MedicineLackListData.fromJson(dynamic json) {
    bedId = json['bedId'];
    bedNo = json['bedNo'];
    branchId = json['branchId'];
    createdBy = json['createdBy'];
    createdDate = json['createdDate'];
    customerId = json['customerId'];
    customerName = json['customerName'];
    drugId = json['drugId'];
    drugName = json['drugName'];
    id = json['id'];
    lackDate = json['lackDate'];
    minUnit = json['minUnit'];
    minUnitName = json['minUnitName'];
    quantity = json['quantity'];
    saasId = json['saasId'];
    sex = json['sex'];
    sexName = json['sexName'];
    specifications = json['specifications'];
    status = json['status'];
    statusName = json['statusName'];
    stockId = json['stockId'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
  }
  num? bedId;
  String? bedNo;
  num? branchId;
  String? createdBy;
  String? createdDate;
  num? customerId;
  String? customerName;
  num? drugId;
  String? drugName;
  num? id;
  String? lackDate;
  String? minUnit;
  String? minUnitName;
  num? quantity;
  num? saasId;
  num? sex;
  String? sexName;
  String? specifications;
  num? status;
  String? statusName;
  num? stockId;
  String? updatedBy;
  String? updatedDate;
MedicineLackListData copyWith({  num? bedId,
  String? bedNo,
  num? branchId,
  String? createdBy,
  String? createdDate,
  num? customerId,
  String? customerName,
  num? drugId,
  String? drugName,
  num? id,
  String? lackDate,
  String? minUnit,
  String? minUnitName,
  num? quantity,
  num? saasId,
  num? sex,
  String? sexName,
  String? specifications,
  num? status,
  String? statusName,
  num? stockId,
  String? updatedBy,
  String? updatedDate,
}) => MedicineLackListData(  bedId: bedId ?? this.bedId,
  bedNo: bedNo ?? this.bedNo,
  branchId: branchId ?? this.branchId,
  createdBy: createdBy ?? this.createdBy,
  createdDate: createdDate ?? this.createdDate,
  customerId: customerId ?? this.customerId,
  customerName: customerName ?? this.customerName,
  drugId: drugId ?? this.drugId,
  drugName: drugName ?? this.drugName,
  id: id ?? this.id,
  lackDate: lackDate ?? this.lackDate,
  minUnit: minUnit ?? this.minUnit,
  minUnitName: minUnitName ?? this.minUnitName,
  quantity: quantity ?? this.quantity,
  saasId: saasId ?? this.saasId,
  sex: sex ?? this.sex,
  sexName: sexName ?? this.sexName,
  specifications: specifications ?? this.specifications,
  status: status ?? this.status,
  statusName: statusName ?? this.statusName,
  stockId: stockId ?? this.stockId,
  updatedBy: updatedBy ?? this.updatedBy,
  updatedDate: updatedDate ?? this.updatedDate,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['bedId'] = bedId;
    map['bedNo'] = bedNo;
    map['branchId'] = branchId;
    map['createdBy'] = createdBy;
    map['createdDate'] = createdDate;
    map['customerId'] = customerId;
    map['customerName'] = customerName;
    map['drugId'] = drugId;
    map['drugName'] = drugName;
    map['id'] = id;
    map['lackDate'] = lackDate;
    map['minUnit'] = minUnit;
    map['minUnitName'] = minUnitName;
    map['quantity'] = quantity;
    map['saasId'] = saasId;
    map['sex'] = sex;
    map['sexName'] = sexName;
    map['specifications'] = specifications;
    map['status'] = status;
    map['statusName'] = statusName;
    map['stockId'] = stockId;
    map['updatedBy'] = updatedBy;
    map['updatedDate'] = updatedDate;
    return map;
  }

}